﻿//-----------------------------------------------------------------------
// <copyright file="TagGroupFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.DictionaryModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class TagGroupFactory
    {
        public static TagGroup CreateTagGroup(
                                    string name,
                                    string description,
                                    IList<Tag> tags,
                                    DateTime editTime,
                                    string editUser)
        {
            TagGroup tagGroup = new TagGroup();
            tagGroup.Description = description;
            tagGroup.EditTime = editTime;
            tagGroup.EditUser = editUser;
            tagGroup.Name = name;
            tagGroup.Tags = tags;
            tagGroup.CreateTime = DateTime.Now;

            return tagGroup;
        }
    }
}
